<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    <s:property value="uname"/></p>
    <s:property value="user.addr.county"/></p>
    <br>
    
    ------------------------------------------------------------>
    <p><s:property value="#a"/></p>
    <p><s:property value="request.b"/></p>
    <p><s:property value="#session.c"/></p>
    <p><s:property value="#application.d"/></p>
    <p><s:property value="#attr.p"/></p>
    
    ----------------------运算符--------------------------------------->
      	<%
  		request.setAttribute("r","rrr");
  	 %>
	<p><s:property value="3*3" /></p>
	<p><s:property value="3==3" /></p>
	<p><s:property value="#request.r=="ppp"" /></p>
	<p><s:property value="3+3" /></p>
	<p><s:property value="3+'3'" />--${3+'3'}</p> <!-- 字符串连接符,这点不同于EL表达式-->
	<p><s:property value="3>2&&1>2" /></p>
	<p><s:property value="3>2?'aa':'bb'" /></p>
    
  
    
    <s:debug>gzl_debug</s:debug>
  </body>
</html>
